<?php echo '<?xml version="1.0" encoding="utf-8"?>'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
	<?php foreach ($this->namespaces as $prefix => $uri): ?>
		xmlns:<?php echo $prefix ?>="<?php echo $uri ?>"
	<?php endforeach ?>
>
    <head profile="http://ns.inria.fr/grddl/rdfa/">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<!-- RSS 1.0 Feed Links -->
	<?php if(isset($this->rdf_type) && !empty($this->store_uri)):?>
		<?php if(!is_array($this->rdf_type)) $this->rdf_type = array($this->rdf_type); ?>	
		<?php foreach($this->rdf_type as $item_rdf_type):?>
    	<link rel="alternate" type="application/rss+xml" title="RSS for <?php echo $item_rdf_type?>" href="<?php echo $this->store_uri?>/items?query=<?php echo rawurlencode('type:'.str_replace(':','\:',$item_rdf_type))?>" />		
		<?php endforeach?>	
	<?php endif?>
	<!--CSS -->
		<link rel="stylesheet" href="/css/main.css" type="text/css"/>
		<title><?php echo $this->title?> : Talis Semantic Web Formats Converter</title>
    </head>
    <body>
   <div class="container">
	<div class="header">
		 <div class="dc-title site_name"><a href="/"><strong class="instance-label">morph</strong> Semantic Converter</a></div>    
	</div>
    	<div class="contents">
		
			<?php
			if(!empty($this->errors))
			{
				echo '<ol>';
				foreach($this->errors as $error)
				{
					echo "<li class=\"error\">{$error}</li>";
				}
				echo '</ol>';
			}

			?>
			<?php
			if(!empty($this->messages))
			{
				foreach($this->messages as $message)
				{
					echo "<p class=\"message\"><strong>{$message}</strong></p>";
				}
			}

			?>

			<?php echo $this->render($this->template) ;?>
		</div>
	<div class="footer">
		<div class="navigation">
			<a href="/about">About</a>
			<a href="/">Morph</a>
		</div>	
	</div>
	</div>
	
	<script type="text/javascript" src="/js/jquery.js"></script>
	<script type="text/javascript" src="/js/toggle-resources.js"></script>
	<script type="text/javascript" charset="utf-8" src="/js/copy-input.js"></script>
    </body>
</html>